import { companyType } from "../gameType";

export class companyModel { 
    //公司的控制类
    list: companyType[] = [];

    getCompoanyList() {
        return this.list;
    }

    addCompany(company: companyType) {
        //新建
        this.list.push(company); 
    }
    delCompany(company: companyType) {
        //清算
        
        this.list.splice(this.list.findIndex(val => val.id == company.id), 1);
    }

}